'use strict';

/** @type {import('sequelize-cli').Migration} */
module.exports = {
    async up(queryInterface, Sequelize) {
        await queryInterface.addColumn('users', 'birthDate', {
            type: Sequelize.DATE,
            allowNull: true,
            comment: '用户出生日期'
        });

        await queryInterface.addColumn('users', 'zodiacSign', {
            type: Sequelize.STRING,
            allowNull: true,
            defaultValue: '',
            comment: '用户星座'
        });
    },

    async down(queryInterface, Sequelize) {
        await queryInterface.removeColumn('users', 'birthDate');
        await queryInterface.removeColumn('users', 'zodiacSign');
    }
}; 